import request, {requeste} from '../utils/request';
export async function queryGoodsCategory(params) {
    return requeste('GoodsCategoryService','queryGoodsCategory', {
        method: 'POST',
        body: params,
    });
}

export async function addGoodsCategory(params) {
    return requeste('GoodsCategoryService','addGoodsCategory', {
        method: 'POST',
        body: params,
    });
}

export async function queryGoodsSingle(params) {
    return requeste('GoodsManageService','queryGoodsSingle', {
        method: 'POST',
        body: params,
    });
}

export async function delGoodsCategory(params) {
    return requeste('GoodsCategoryService','delGoodsCategory', {
        method: 'POST',
        body: params,
    });
}

export async function modGoodsCategory(params) {
    console.log("-------GoodsCategoryService----modGoodsCategory");
    return requeste('GoodsCategoryService','modGoodsCategory', {
        method: 'POST',
        body: params,
    });
}

export async function queryGoodComments(params) {
    return requeste('GoodsManageService','queryGoodComments', {
        method: 'POST',
        body: params,
    });
}

export async function queryMidComments(params) {
    return requeste('GoodsManageService','queryMidComments', {
        method: 'POST',
        body: params,
    });
}


export async function queryNativeComments(params) {
    return requeste('GoodsManageService','queryNativeComments', {
        method: 'POST',
        body: params,
    });
}


export async function findParentNode(params) {
    console.log("-------");
    return requeste('GoodsCategoryService','findParentNode', {
        method: 'POST',
        body: params,
    });
}

export async function findParentId(params) {
    return requeste('GoodsCategoryService','findParentId', {
        method: 'POST',
        body: params,
    });
}

export async function queryGoodsType(params) {
    return requeste('GoodsTypeService','queryGoodsType', {
        method: 'POST',
        body: params,
    });
}

export async function addGoodsType(params) {
    return requeste('GoodsTypeService','addGoodsType', {
        method: 'POST',
        body: params,
    });
}

export async function queryGoodsTypeName(params) {
    return requeste('AttributeService','queryGoodsTypeName', {
        method: 'POST',
        body: params,
    });
}

export async function delGoodsType(params) {
    return requeste('GoodsTypeService','delGoodsType', {
        method: 'POST',
        body: params,
    });
}

export async function modGoodsType(params) {
    return requeste('GoodsTypeService','modGoodsType', {
        method: 'POST',
        body: params,
    });
}

export async function queryAllGoodsType(params) {
    return requeste('GoodsTypeService','queryAllGoodsType', {
        method: 'POST',
        body: params,
    });
}

export async function queryAttr(params) {
    return requeste('AttributeService','queryAttr', {
        method: 'POST',
        body: params,
    });
}

export async function addAttr(params) {
    return requeste('AttributeService','addAttr', {
        method: 'POST',
        body: params,
    });
}

export async function modAttr(params) {
    return requeste('AttributeService','modAttr', {
        method: 'POST',
        body: params,
    });
}

export async function delAttr(params) {
    return requeste('AttributeService','delAttr', {
        method: 'POST',
        body: params,
    });
}

export async function queryAll(params) {
    return requeste('AttributeService','queryAll', {
        method: 'POST',
        body: params,
    });
}

export async function queryBrand(params) {
    return requeste('BrandService','queryBrand', {
        method: 'POST',
        body: params,
    });
}

export async function addBrand(params) {
    return requeste('BrandService','addBrand', {
        method: 'POST',
        body: params,
    });
}

export async function delBrand(params) {
    return requeste('BrandService','delBrand', {
        method: 'POST',
        body: params,
    });
}

export async function modBrand(params) {
    return requeste('BrandService','modBrand', {
        method: 'POST',
        body: params,
    });
}

export async function queryAllBrand(params) {
    return requeste('BrandService','queryAllBrand', {
        method: 'POST',
        body: params,
    });
}

export async function queryGoods(params){
    return requeste('GoodsManageService','queryGoods',{
        method:'POST',
        body:params,
    });
}

export async function queryShopList(params){
    return requeste('GoodsManageService','queryShopList',{
        method:'POST',
        body:params,
    });
}

export async function addGoods(params){
    return requeste('GoodsManageService','addGoods',{
        method:'POST',
        body:params,
    });
}

export async function modGoods(params){
    return requeste('GoodsManageService','modGoods',{
        method:'POST',
        body:params,
    });
}

export async function changeOnsale(params){
    return requeste('GoodsManageService','changeOnsale',{
        method:'POST',
        body:params,
    });
}

export async function delGoods(params){
    return requeste('GoodsManageService','delGoods',{
        method:'POST',
        body:params,
    });
}

export async function checkGoodsSn(params){
    return requeste('GoodsManageService','checkGoodsSn',{
        method:'POST',
        body:params,
    });
}

export async function querySellerShop(params){
    return requeste('GoodsManageService','querySellerShop',{
        method:'POST',
        body:params,
    });
}

export async function queryGoodsPhoto(params){
    return requeste('GoodsManageService','queryGoodsPhoto',{
        method:'POST',
        body:params,
    });
}

/**
 * 商品列表步骤一修改商品
 * @author xxf
 * @date 2018/2/22
 * */
export async function modGoodsCat(params) {
    return requeste('GoodsManageService','modGoodsCat',{
        method:'POST',
        body:params,
    })
}

/**
 * 商品列表步骤二修改商品
 * @author xxf
 * @date 2018/2/22
 * */
export async function modGoodsGI(params) {
    return requeste('GoodsManageService','modGoodsGI',{
        method:'POST',
        body:params,
    })
}

/**
 * 商品列表步骤三修改商品
 * @author xxf
 * @date 2018/2/22
 * */
export async function modGoodsSI(params) {
    return requeste('GoodsManageService','modGoodsSI',{
        method:'POST',
        body:params,
    })
}

/**
 * 商品列表步骤四修改商品
 * @author xxf
 * @date 2018/2/22
 * */
export async function modGoodsAttr(params) {
    return requeste('GoodsManageService','modGoodsAttr',{
        method:'POST',
        body:params,
    })
}